how to solve 3x3 system of equations